package com.u.social.abtest.service;

import com.u.social.abtest.model.RecommendConfig;
import org.springframework.stereotype.Service;

/**
 * @program: u-social
 * @description: abtest 逻辑类
 * @author: Alex Wu
 * @createDate: 2025-04-10 15:13
 **/

@Service
public class ABService {

    public Boolean setABTest(RecommendConfig recommendConfig) {
        // 存储数据库
        System.out.println("ABTestConfig: " + recommendConfig);

        // 存储redis
        System.out.println("ABTestConfig: " + recommendConfig);
        return true;
    }
    public String getABTestResult(String userId) {
        System.out.println("从 redis 上读取用户的实验配置");
        return "A/B Test Result for user: " + userId;
    }
}
